package com.n9.qq.util;

import java.util.Objects;

/**
 * 验证器
 * @author ice
 * @since 2019/2/12 14:08
 */
public class Validator {

    /**
     * 判断数据含有元素<br/>
     * byteArray == null return false;<br/>
     * byteArray.length <= 0 return false;<br/>
     * @param byteArray
     * @return
     */
    public static boolean hasElement(byte[] byteArray) {
        return Objects.nonNull(byteArray) && byteArray.length > 0;
    }

}
